package cn.iocoder.yudao.module.forward.controller.admin.datasourceregisterconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 信息源注册配置信息新增/修改 Request VO")
@Data
public class DataSourceRegisterConfigSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14252")
    private Integer id;

    @Schema(description = "注册地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "注册地址不能为空")
    private String address;

    @Schema(description = "许可证号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "许可证号不能为空")
    private String license;

    @Schema(description = "所属机构", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "所属机构不能为空")
    private String owner;

    @Schema(description = "终端类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "终端类型不能为空")
    private String type;

    @Schema(description = "授权范围", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "授权范围不能为空")
    private String scope;

    @Schema(description = "信息源ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21125")
    @NotNull(message = "信息源ID不能为空")
    private Integer sourceId;

}